<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'edit';
$return=array();
if($_RQ['op']=='edit'){
	$item=$this->plugin_setting('setting');
    $return['item']=$item;
	$return['status']=array('1'=>'开启','0'=>'关闭');
	$htmls=array(
		'type'=>'edit',
		'post'=>'post',
		'desc'=>'幻灯片设置',
		'edit'=>array(
			array('type'=>'array','name'=>'hdps','add_tip'=>'添加一个幻灯片',
				'list'=>array(
					array('type'=>'image','name'=>'picurl','title'=>'幻灯片'),	
					array('type'=>'string','name'=>'url','title'=>'幻灯片url'),	
				),
				'details'=>array(
					array('type'=>'image','name'=>'picurl','title'=>'幻灯片'),	
					array('type'=>'string','name'=>'url','title'=>'幻灯片url'),
				)
				),
			),
			);
	$return['htmls']=$htmls;
	exi($return);
	}
if($_RQ['op']=='post'){
	$postdata=get_postdata();
	$item=$this->plugin_setting('setting',$postdata);
	exi('设置成功');
}
?>